<html>
<head>
</head>
<script language="javascript">
function buka()
{
	w_left = (screen.width-1250)/2;
	w_top  = (screen.height-220)/2;

	window.moveTo(w_left,w_top);
}

function getRef(id) {
	opener.document.kirim.reference_id.value=id;
	self.close();	
}
</script>
<style>
body
{
	padding:2%;
}
.tr_jd  {
	background:#FF9900;
	font-size:14px;
	}
.tr_jd2 {
	background:#CCFFCC;
	font-size:12px;
	}
</style>

<body onLoad="buka()">
<h2>Show ReFerence</h2>
<?php 
echo ! empty($pagination) ? '<p id="pagination">' . $pagination . '</p>' : '';
	//echo ! empty($table) ? $table : '';
?>
<form name="frm" method="post" action="">
<table cellpadding="2" cellspacing="1" >
<tr class="tr_jd" align="center">
	<td>Ticket ID</td><td>Title</td><td>Name</td><td>Open Datetime</td><td>Target Date</td><td>Close Date</td><td>Status</td><td>Level Of Impact</td><td>Prob Of Impact</td><td>Severity Level</td><td>Product Name</td>
</tr>
<?php foreach($search->result() as $ticket) { ?>
<tr class="tr_jd2">
	<td><a href="#" onClick="getRef('<?php echo $ticket->ticket_id;?>')"><?php echo $ticket->ticket_id;?></a></td><td><?php echo $ticket->title;?></td><td><?php echo $ticket->name;?></td><td><?php echo $ticket->open_datetime;?></td><td><?php echo $ticket->target_date;?></td><td><?php echo $ticket->close_date;?></td><td><?php echo $ticket->status;?> </td><td><?php echo $ticket->level_o_impact;?></td><td><?php echo $ticket->prob_o_impact;?></td><td><?php echo $ticket->severity_level;?></td><td><?php echo $ticket->product;?></td>
</tr>
<?php } ?>

</table>
</form>
</body>
</html>